projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7e1f56
)
Properly propagate expand flags
author
Matthias Clasen
<mclasen@redhat.com>
Wed, 20 Oct 2010 21:51:57 +0000
(23:51 +0200)
committer
Matthias Clasen
<mclasen@redhat.com>
Thu, 21 Oct 2010 09:14:26 +0000
(11:14 +0200)
When showing a widget that already has need_compute_expand set,
we need to queue the recomputation on the parent.
gtk/gtkwidget.c
patch
|
blob
|
history
diff --git
a/gtk/gtkwidget.c
b/gtk/gtkwidget.c
index 474f55a26548e0e60078cc94c2917e8daef6fc19..49420c9e0a193ea66239531a7d1526ae5c01ecab 100644
(file)
--- a/
gtk/gtkwidget.c
+++ b/
gtk/gtkwidget.c
@@
-3810,7
+3810,8
@@
gtk_widget_show (GtkWidget *widget)
widget->priv->computed_hexpand ||
widget->priv->computed_vexpand)
{
- gtk_widget_queue_compute_expand (widget);
+ if (widget->priv->parent != NULL)
+ gtk_widget_queue_compute_expand (widget->priv->parent);
}
g_signal_emit (widget, widget_signals[SHOW], 0);